import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findSingleProductListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/single/product/findSingleProductListByPage',
        method: 'post',
        params
    })
}
export function onSaleProduct(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/single/product/onSaleProduct',
        method: 'post',
        params
    })
}
export function stopSaleProduct(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/single/product/stopSaleProduct',
        method: 'post',
        params
    })
}
export function del(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/single/product/del',
        method: 'post',
        params
    })
}